<%--
  Created by IntelliJ IDEA.
  User: guoshunw
  Date: 13-9-2
  Time: 上午10:02
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%--<s:debug />--%>

<tr>
    <td class="label"><s:text name="request.projectType"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'Program','OEM Program', 'Support Program', 'Offer'}" id="attr_projectType"
                  name="attr_projectType" disabled="true"
                  value="%{req.attributes.attr_projectType}"
                  theme="simple"/>
    </td>
    <td class="label"><s:text name="request.projectManager"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="projectManagers" id="attr_projectManager"
                  name="attr_projectManager" disabled="true"
                  value="%{req.attributes.attr_projectManager}"
                  theme="simple"/>
    </td>
</tr>

<tr>
    <td class="label"><s:text name="request.projectState"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'COMMITTED', 'FORECAST', 'MIGRATED', 'PLANNING'}" id="attr_projectState"
                  name="attr_projectState" disabled="true"
                  value="%{req.attributes.attr_projectState}"
                  theme="simple"/>
    </td>
    <td class="label"><s:text name="request.projectRigor"/></td>
    <td>
        <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                  required="true" list="{'High', 'Medium', 'Low'}" id="attr_projectRigor"
                  name="attr_projectRigor" disabled="true"
                  value="%{req.attributes.attr_projectRigor}"
                  theme="simple"/>
    </td>
</tr>

<s:if test="req.attributes.attr_projectType != 'Offer'">
    <tr>
        <td class="label">
            <s:text name='request.componentAndRelease'/>
        </td>
        <td colspan="3">
            <s:select headerKey="" headerValue="%{getText('request.componentAndRelease.noassigned')}"
                      required="true"
                      list="componentAndReleases"
                      id="attr_componentAndRelease"
                      name="attr_componentAndRelease" disabled="true"
                      value="%{req.attributes.attr_componentAndRelease}"
                      theme="simple"/>
        </td>
    </tr>
</s:if>

<tr>
    <td class="label"><s:text name='request.projectName'/></td>
    <td>
        <s:textfield id="attr_projectName" name="attr_projectName" value="%{req.attributes.attr_projectName}"  disabled="true"
                     theme="simple"/>_<s:property value="programMappingExt[req.attributes.attr_projectType]"/>
    </td>

    <s:if test="req.attributes.attr_projectType == 'Offer'">
        <td class="label">
            <s:text name="request.offerOperator"/>
        </td>
        <td colspan="3">
            <s:textfield id="attr_offerOperator" name="attr_offerOperator"
                         value="%{req.attributes.attr_offerOperator}" theme="simple" disabled="true"/>
        </td>
    </s:if>
    <s:elseif test="req.attributes.attr_projectType == 'OEM Program'">
        <td class="label">
            <s:text name="request.oemPartner"/>
        </td>
        <td class="label">
            <s:textfield id="attr_OEMPartnerName" name="attr_OEMPartnerName"
                         value="%{req.attributes.attr_OEMPartnerName}" theme="simple" disabled="true"/>
        </td>
    </s:elseif>

</tr>


<script type="text/javascript">
    //    show attachments
    $(function () {

        var requestForm = $("div#tab_<s:property value='req.id'/>");
        global.updateIncludeAttributes = function (request) {

        }
    });
</script>
